package com.wang.demo.convert;


import com.wang.demo.entity.dto.SysUserDto;
import com.wang.demo.entity.dto.UserDto;
import com.wang.demo.entity.po.SysUserPo;
import com.wang.demo.entity.po.UserPo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

// 一定要使用org.mapstruct包下的@Mapper注解
@Mapper
public interface SysUserPoConvert {
    SysUserPoConvert INSTANCE = Mappers.getMapper(SysUserPoConvert.class);

    //    @Mapping(source = "age", target = "age1")
    SysUserPo convertDtoToPo(SysUserDto sysUserDto);

    UserDto convertPoToDto(UserPo sysUserPo);
}